package com.firebird.app.fekpsl.ui.activity.sword.community

import android.content.Context
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.firebird.app.fekpsl.app.App

abstract class BaseActivity: AppCompatActivity(){

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        App.addActivityManager(this)
        setContentView(bindLayout())
        initData()
        initEvent()
    }

    abstract fun bindLayout():Int

    abstract fun initData()

    abstract fun initEvent()

    fun getContext(): Context {
        return this
    }
}